package com.juneng.config;

import com.juneng.constant.Constant;
import org.springframework.stereotype.Component;


/**
 * @Description:
 * @author: 吴昊
 * @date: 2020/1/2
 */
@Component
public class SystemConfig {
    /** 上传路径 */
    private static String profile = Constant.UPLOAD_PATH;

    /**
     * 获取下载路径
     */
    public static String getDownloadPath()
    {
        return getProfile() + "/download/";
    }

    public static String getProfile() {
        return profile;
    }

    public static void setProfile(String profile) {
        SystemConfig.profile = profile;
    }

    /**
     * 获取上传路径
     */
    public static String getUploadPath()
    {
        return getProfile() + "/upload";
    }
}
